<html><body><pre>
<script>
function fazmul(fator) {
 
    return function(x) {
        return fator * x;
    };
}

var dobro = fazmul(2);
var n = dobro(10);
document.writeln(n);

var triplo = fazmul(3);
var k = triplo(10);
document.writeln(k);

</script>
</pre></body></html>
